package com.example.demo.controller;

import com.example.demo.module.BellScheduleIll;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/*
 * @Author:大力王
 * @Date:2024/4/11-11-23:42
 * 开始了
 */
@Api( tags = "铃声接口扩展以后再开发先留着")
@RestController
@RequestMapping("/generateBellScheduleAudio")
public class BellScheduleAudioController {

    @Resource
    private BellScheduleIll bellScheduleIll;

    @GetMapping("/generateBellScheduleAudioInt")
    public String generateBellScheduleAudio() {
        // 此处略去根据时间生成铃声时间表的逻辑
        String bellScheduleText = "校园铃声时间表文本";
        String audioUrl = bellScheduleIll.textToAudio(bellScheduleText);
        return audioUrl;
    }
}
